|
Расположение в меню |
---|
Part → Соединить → Встроить объект |
Верстаки |
Part |
Быстрые клавиши |
Нет |
Представлено в версии |
0.16 |
См. также |
Соединить объекты, Вырез объекта, Булевы операции, Толщина |
Данный инструмент встраивает полый объект (например трубу) в другой полый объект.
Основные
Алгоритмы, лежащие в основе инструментов объединения, довольно просты, и понимание принципов их работы важно для правильного использования данных инструментов.
1. Base object is boolean-cut with Tool object. The resulting shape is a set (compound) of non-intersecting solids (typically, two).
2. The resulting compound is filtered: only the largest solid is kept.
3. That largest solid is boolean-fused with Tool object.
4. If Refine property is true, the resulting shape is refined.
The Join tools can by used in macros and from the python console by using the following function:
JoinFeatures.makePartJoinFeature(name = 'Embed', mode = 'Embed')
Пример:
import JoinFeatures
j = JoinFeatures.makePartJoinFeature(name = 'Embed', mode = 'Embed' )
j.Base = FreeCADGui.Selection.getSelection()[0]
j.Tool = FreeCADGui.Selection.getSelection()[1]
The tool itself is implemented in Python, see /Mod/Part/JoinFeatures.py (Github link) under where FreeCAD is installed.